package com.jarvis.dubbo.mock;

import com.jarvis.dubbo.pojo.ValidationModel;
import com.jarvis.dubbo.service.IMockService;

/**
 * TODO XXX
 *
 * @author jarvis
 * created in 2020/9/18
 */
public class MockServiceMock implements IMockService {
    @Override
    public ValidationModel successRpc(ValidationModel model) {
        return new ValidationModel();
    }

    @Override
    public ValidationModel failRpc(ValidationModel validationModel){
        return new ValidationModel("调用失败", "调用失败");
    }
}
